package com.micolor.logr.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.micolor.logr.runtime.annotation.LogComponent;
import com.micolor.logr.runtime.annotation.LogField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author EvanGe
 * @Type UserCash.java
 * @Desc
 * @date 2024/7/9 14:55
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Data
@TableName("t_user_cash")
@LogComponent("用户现金余额")
public class UserCash extends BaseEntity implements Serializable {

    @LogField(value = "钱包编号",isBizId = true)
    @TableId(value = "cash_id",type= IdType.ASSIGN_UUID)
    private String cashId;

    @LogField(value = "用户编号",isBizDesc = true,isTarget = true)
    @TableField(value = "user_id")
    private String userId;

    @LogField(value = "现金余额")
    @TableField(value = "user_cash")
    private Float userCash;
}
